import axios from "@/axios.js";

export function getArticlePageList(data){
    return axios.post("/admin/article/list", data)
}

export function deleteArticle(id){
    return axios.post("/admin/article/delete", {id})
}

export function publishArticle(data){
    return axios.post('/admin/article/publish',data)
}

export function getArticleDetail(id){
    return axios.post('/admin/article/detail',{id})
}

export function updateArticle(data){
    return axios.post('/admin/article/update',data)
}
